-- GENERATED SPELL FOR [Stitched Colossus] --


function spell0_30071(pUnit, Event) --@Massive Stomp,Self--
pUnit:FullCastSpellOnTarget(55821,pUnit)
pUnit:RegisterEvent('Sorts_30071', 617, 1)
end

function spell1_30071(pUnit, Event) --@Massive Stomp,Self--
pUnit:FullCastSpellOnTarget(55826,pUnit)
pUnit:RegisterEvent('Sorts_30071', 547, 1)
end

function spell2_30071(pUnit, Event) --@Unstoppable Enrage,Self--
pUnit:FullCastSpellOnTarget(54356,pUnit)
pUnit:RegisterEvent('Sorts_30071', 616, 1)
end

function Sorts_30071(pUnit, Event)
local choix_sorts_30071 = math.random(0, 2)
if choix_sorts_30071 == 0 then
pUnit:RegisterEvent('spell0_30071', 1, 1)
end
if choix_sorts_30071 == 1 then
pUnit:RegisterEvent('spell1_30071', 1, 1)
end
if choix_sorts_30071 == 2 then
pUnit:RegisterEvent('spell2_30071', 1, 1)
end
end

function mob30071_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30071', math.random(1500, 3000), 1)
end

function mob30071_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30071_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30071_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30071, 1, 'mob30071_Action')
RegisterUnitEvent(30071, 2, 'mob30071_Leave')
RegisterUnitEvent(30071, 3, 'mob30071_Kill')
RegisterUnitEvent(30071, 4, 'mob30071_Die')
